package com.zyh.demo;

import com.zyh.domain.Student;
import com.zyh.domain.Teacher;
import com.zyh.domain.Worker;

public class OOPDemo1 {
    public static void main(String[] args) {
        Student student = new Student();
        student.show();

        Teacher teacher = new Teacher();
        teacher.show();
        teacher.eat();

        Worker worker = new Worker();
        worker.show();
        worker.eat();
    }
}
